<template>
  <div class="game">
    <div class="btn-title">
      <title-bar :title-array="title"></title-bar>
    </div>
    <keep-alive>
      <router-view/>
    </keep-alive>
  </div>
</template>

<script type="text/ecmascript-6">
  import titleBar from '../../common/titleBar/titleBar'

  export default {
    data() {
      return {
        title: [
          {
            name: '热门',
            parent: 'game',
            router: 'gameHot'
          },
          {
            name: '新上架',
            parent: 'game',
            router: 'shelves'
          }/*,
          {
            name: '猜你喜欢',
            parent: 'game',
            router: 'like'
          }*/]
      }
    },
    components: {
      titleBar
    }
  }
</script>

<style lang="stylus" rel="stylesheet/stylus">
  .game
    position relative
    .btn-title
      padding 24px 32px 0 32px
</style>
